<?php
namespace Modules\Shop\Database\factories;

use Illuminate\Database\Eloquent\Factories\Factory;

class SkuFactoryFactory extends Factory
{
    /**
     * The name of the factory's corresponding model.
     *
     * @var string
     */
    protected $model = \Modules\Shop\Models\SkuFactory::class;

    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        $pf = rand(2000, 9999);
        return [
            'uid' => time(),
            'price_fee' => $pf,
            'tenant_id' => 1,
            'market_price_fee' => rand(500, 2000),
            'weight' => rand(1, 100),
            'stock' => rand(100, 500)
        ];
    }
}

